module tcs {
	export class body extends egret.DisplayObjectContainer{
		private body:egret.Bitmap;
        private main:Main;
       
		public constructor(texture:egret.Texture) {
	     super();
		// this.main=new Main;
	     this.body=new egret.Bitmap(texture);
		 this.addChild(this.body);
	    }
		private static cachedict:Object={};
		public static bodyadd(texturename:string):tcs.body{
			if(tcs.body.cachedict[texturename]==null)
			   tcs.body.cachedict[texturename]=[];
			var dict:tcs.body[]=tcs.body.cachedict[texturename];
			var thebody:tcs.body;
			thebody=new tcs.body(RES.getRes(texturename));
			console.log("成功被调用，创建新的身体")
			return thebody;
		}
	}
}